package cn.tedu.task;

import javax.swing.*;

/**
 * 设计图片类
 */
public class Images {
    /**
     * The constant sea.
     */
    public static ImageIcon sea;
    /**
     * The constant gameover.
     */
    public static ImageIcon gameover;
    /**
     * The constant battleship.
     */
    public static ImageIcon battleship;
    /**
     * The constant obsersubm.
     */
    public static ImageIcon obsersubm;
    /**
     * The constant torpesubm.
     */
    public static ImageIcon torpesubm;
    /**
     * The constant minesubm.
     */
    public static ImageIcon minesubm;
    /**
     * The constant mine.
     */
    public static ImageIcon mine;
    /**
     * The constant bomb.
     */
    public static ImageIcon bomb;

    static{
        sea = new ImageIcon("/Users/zanezhang/Downloads/trainningrepo/submarinetask/img/sea.png");
        gameover = new ImageIcon("/Users/zanezhang/Downloads/trainningrepo/submarinetask/img/gameover.png");
        battleship = new ImageIcon("/Users/zanezhang/Downloads/trainningrepo/submarinetask/img/battleship.png");
        obsersubm = new ImageIcon("/Users/zanezhang/Downloads/trainningrepo/submarinetask/img/obsersubm.png");
        torpesubm = new ImageIcon("/Users/zanezhang/Downloads/trainningrepo/submarinetask/img/torpesubm.png");
        minesubm = new ImageIcon("/Users/zanezhang/Downloads/trainningrepo/submarinetask/img/minesubm.png");
        mine = new ImageIcon("/Users/zanezhang/Downloads/trainningrepo/submarinetask/img/mine.png");
        bomb = new ImageIcon("/Users/zanezhang/Downloads/trainningrepo/submarinetask/img/bomb.png");
    }

    /**
     * obj.getImageLoadStatus方法测试图片资源加载状态
     *
     * @param args the input arguments
     */
    public static void main(String[] args) {
        System.out.println(sea.getImageLoadStatus());
        System.out.println(gameover.getImageLoadStatus());
        System.out.println(battleship.getImageLoadStatus());
        System.out.println(obsersubm.getImageLoadStatus());
        System.out.println(torpesubm.getImageLoadStatus());
        System.out.println(minesubm.getImageLoadStatus());
        System.out.println(mine.getImageLoadStatus());
        System.out.println(bomb.getImageLoadStatus());
    }
}
























